
package com.googlecode.mgwt.examples.showcase.client.activities.animationdone;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;
import com.googlecode.mgwt.dom.client.event.tap.HasTapHandlers;
import com.googlecode.mgwt.examples.showcase.client.AppController;
import com.googlecode.mgwt.ui.client.widget.Button;
import com.googlecode.mgwt.ui.client.widget.RoundPanel;

public class AnimationDoneViewGwtImpl implements AnimationDoneView {

	private RoundPanel panel;
	private Button button;

	/**
	 * 
	 */
	public AnimationDoneViewGwtImpl() {
		panel = new RoundPanel();
		panel.getElement().setAttribute("style", "text-align:center");
		panel.setHeight("200px");

		HTML html = new HTML("<p style='text-align: center; position: relative; top: 14px; font-size: 20px'>"+
		AppController.getClientFactory().getLabelResource().reportSuccess()+"<p>"+
		"<p style='text-align: center; position: relative; top: 45px; font-size: 14px'>"+
		AppController.getClientFactory().getLabelResource().tecSchedual()+"<p>");
		panel.add(html);
		

		button = new Button();
		button.getElement().setAttribute("style", "margin:auto;width: 200px; top: 100px; position:relative;");
		button.setText(AppController.getClientFactory().getLabelResource().back());

		panel.add(button);

	}

	@Override
	public Widget asWidget() {
		return panel;
	}

	@Override
	public HasTapHandlers getBackButton() {
		return button;
	}

}
